<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script !src="">
   var arr1 =[1,2,3]
   var arr2='abc'
   var arr3 = {name:'min',sex:'boy'}
   var arr4 = function (){}

   console.log(Object.prototype.toString.call(arr1))
   console.log( Object.prototype.toString.call(arr2))
   console.log(Object.prototype.toString.call(arr3))
   console.log(Object.prototype.toString.call(arr4))
 // typeof 是只能判断出基本数据类型，引用复杂数据类型无法判断
 //   instanceof()是只返回布尔值  TRUE FALSE
 //   Object.protype.tostring.call()  来准确的判断出来数据类型
</script>
